package com.manage.design.service.impl;

import com.manage.design.dao.OperatorMapper;
import com.manage.design.pojo.Operator;
import com.manage.design.service.OperatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Create by ldr.
 * @create 2018-09-07 16:58
 * @Description：
 */
@Service
public class OperatorServiceImpl implements OperatorService {

    @Autowired
    private OperatorMapper operatorMapper;

    @Override
    public Operator getOperatorByUsername(String username) {
        return operatorMapper.selectByUsername(username);
    }

    @Override
    public int updateByUsername(Operator record) {
        return operatorMapper.updateByUsername(record);
    }
}
